

#ifndef _MESSAGEERROR_HPP_
#define _MESSAGEERROR_HPP_


#include <assert.h>

//namespace ElementalEngine
//{
#define VERIFY_MESSAGE_SIZE(inSize, checkSize)										\
if (inSize != checkSize)															\
{																					\
	EngineGetToolBox()->SetErrorValue(ERR_MSG_SIZE_INVALID);						\
	EngineGetToolBox()->Log(LOGERROR, _T("%s(%d): Message size is %d and should be %d\n"),	\
		__FILE__, __LINE__, inSize, checkSize);										\
	return MSG_SIZE_INVALID;														\
}

#define MSG_NOT_HANDLED			0
#define MSG_HANDLED				1
#define MSG_HANDLED_PROCEED		2
#define MSG_HANDLED_STOP		3
#define MSG_SIZE_INVALID		4
#define MSG_ERROR				0xBAADDEAD
#define MSG_WARNING				0xBADDECAF

//}	//namespace ElementalEngine

#endif		// #ifndef _MESSAGEERROR_HPP_